package com.medical.patient.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.medical.common.utils.PageUtils;
import com.medical.common.utils.Query;

import com.medical.patient.dao.PatientBankDao;
import com.medical.patient.entity.PatientBankEntity;
import com.medical.patient.service.PatientBankService;


@Service("patientBankService")
public class PatientBankServiceImpl extends ServiceImpl<PatientBankDao, PatientBankEntity> implements PatientBankService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PatientBankEntity> page = this.page(
                new Query<PatientBankEntity>().getPage(params),
                new QueryWrapper<PatientBankEntity>()
        );

        return new PageUtils(page);
    }

}